<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String basePath= request.getScheme()+
            "://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/";
%>
<html>
<head>
    <title>Title</title>
<%--    <base href="http://localhost:8080/my06_path/">--%>
    <%--动态获取路径--%>
    <base href="<%=basePath%>">
</head>
<body>
    <p>第一个springmvc项目</p>
    <p><a href="${pageContext.request.contextPath}/user/some.do">发起user/some.do请求</a></p>
    <p><a href="user/some.do">加入base后访问</a></p>
</body>
</html>
